﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<HTML lang="en">
	<HEAD>
		<META content="IE=10.000" http-equiv="X-UA-Compatible">

		<META charset="utf-8">
		<META name="viewport" content="width=device-width, initial-scale=1.0">
		<TITLE>运营管理后台</TITLE>
		<!-- CSS -->
		<LINK href="css/OpenSans.css" rel="stylesheet" type="text/css">
		<LINK href="css/bootstrap.min.css" rel="stylesheet">
		<LINK href="css/jasny-bootstrap.min.css" rel="stylesheet">
		<LINK href="css/font-awesome.css" rel="stylesheet" type="text/css">
		<LINK href="css/daterangepicker-bs3.css" rel="stylesheet" type="text/css">
		<LINK href="css/datepicker.css" rel="stylesheet" type="text/css">
		<LINK href="css/select2.css" rel="stylesheet" type="text/css">
		<LINK href="css/select2-bootstrap.css" rel="stylesheet" type="text/css">
		<LINK href="css/uniform.default.min.css" rel="stylesheet" type="text/css">
		<!--<link href="scripts/css/prettify.css" rel="stylesheet" type="text/css" />
        <link href="http://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.10/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css" />-->
		<LINK href="css/fullcalendar.css" rel="stylesheet">
		<LINK href="css/fullcalendar.print.css" rel="stylesheet" media="print">
		<LINK href="css/toastr.min.css" rel="stylesheet">
		<LINK href="css/ark.css" rel="stylesheet" type="text/css">
		<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
            <script src="/manager/js/html5shiv.js"></script>
            <script src="/manager/js/respond.min.js"></script>
        <![endif]-->

		<SCRIPT src="js/jquery.min.js"></SCRIPT>

		<META name="GENERATOR" content="MSHTML 10.00.9200.17457">
	</HEAD>

	<BODY class="cover">
		<DIV class="wrapper">
			<!-- HEAD NAV -->
			<DIV class="navbar navbar-default navbar-static-top navbar-main" role="navigation">
				<DIV class="navbar-header">
					<A class="navbar-brand" href="#">
						运营管理后台</A>
				</DIV>
				<UL class="nav navbar-nav navbar-left">
					<LI class="sidemenu-switch">
						<A href="#">
							<SPAN class="sr-only">Toggle navigation</SPAN>
							<I class="fa fa-bars"></I>
						</A>
					</LI>
				</UL>
				<UL class="nav navbar-nav navbar-right">
					<LI class="visible-xs">
						<A class="navbar-toggle" href="#" data-toggle="collapse" data-target=".sidebar">
							<SPAN class="sr-only">Toggle 
  navigation</SPAN>
							<I class="fa fa-bars"></I> </A>
					</LI>
					<LI class="dropdown">
						<A class="dropdown-toggle avatar pull-right" href="#" data-toggle="dropdown">
							<SPAN class="hidden-small">管理员<B 
  class="caret"></B></SPAN> </A>
						<UL class="dropdown-menu pull-right">
							<LI>
								<A href="#">
									<I class="fa fa-sign-out"></I>退出登录</A>
							</LI>
						</UL>
					</LI>
				</UL>
			</DIV>
			<!-- END: HEAD NAV -->
			<!-- BODY -->
			<DIV class="body">
				<!-- SIDEBAR -->
				<!-- SIDEBAR -->
				<ASIDE class="sidebar">
					<UL class="nav nav-stacked">
						<LI class="menu">
							<A class="menu-toggle" href="#">
								<I class="fa fa-users fa-fw"></I>
								<SPAN class="item-label">玩家管理<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI class="active">
									<A href="user-list.html">
										<I class="fa fa-sort-alpha-asc fa-fw"></I>
										<SPAN>玩家列表</SPAN>
									</A>
								</LI>
								<LI>
									<A href="usergame-list.html">
										<I class="fa fa-list fa-fw"></I>
										<SPAN>玩家游戏统计</SPAN>
									</A>
								</LI>
								<LI>
									<A href="user-gold.html">
										<I class="fa fa-support fa-fw"></I>
										<SPAN>金币记录</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
					
						
						<LI class="menu ">
							<A class="menu-toggle" href="#/user/users">
								<I class="fa fa-user fa-fw"></I>
								<SPAN class="item-label">系统用户<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="user-manage.html">
										<I class="fa fa-sort-alpha-asc fa-fw"></I>
										<SPAN>用户管理</SPAN>
									</A>
								</LI>
								<LI>
									<A href="#">
										<I class="fa fa-th-large fa-fw"></I>
										<SPAN>角色与权限</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/user/users">
								<I class="fa fa-phone fa-fw"></I>
								<SPAN class="item-label">客户服务<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="#">
										<I class="fa fa-credit-card fa-fw"></I>
										<SPAN>会员反馈处理</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/user/users">
								<I class="fa fa-adn fa-fw"></I>
								<SPAN class="item-label">应用管理<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="#/app/notices">
										<I class="fa fa-bullhorn fa-fw"></I>
										<SPAN>公告设置</SPAN>
									</A>
								</LI>
								<LI>
									<A href="#/app/apps">
										<I class="fa fa-android fa-fw"></I>
										<SPAN>版本管理</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/player/players#">
								<I class="fa fa-header fa-fw"></I>
								<SPAN class="item-label">活动管理<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="#/activity/activities">
										<I class="fa fa-sort-alpha-asc fa-fw"></I>
										<SPAN>活动列表</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/player/players#">
								<I class="fa fa-bar-chart-o fa-fw"></I>
								<SPAN class="item-label">数据统计<I class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="richest-player.html">
										<I class="fa fa-users fa-fw"></I>
										<SPAN>玩家排名统计</SPAN>
									</A>
								</LI>
								
							</UL>
						</LI>
						<LI class="menu ">
							<A class="menu-toggle" href="#/player/players#">
								<I class="fa fa-sliders fa-fw"></I>
								<SPAN class="item-label">系统管理<I 
  class="caret"></I></SPAN>
							</A>
							<UL class="submenu">
								<LI>
									<A href="#/system/logs">
										<I class="fa fa-history fa-fw"></I>
										<SPAN>系统日志</SPAN>
									</A>
								</LI>
								<LI>
									<A href="#/player/players#">
										<I class="fa fa-cloud fa-fw"></I>
										<SPAN>系统监控</SPAN>
									</A>
								</LI>
							</UL>
						</LI>
					</UL>
				</ASIDE>
				<!-- END: SIDEBAR -->
				<!-- END: SIDEBAR -->
				<SECTION class="content">
					<OL class="breadcrumb">
						<LI>
							<I class="fa fa-sort-alpha-asc fa-fw"></I> 玩家列表</LI>
					</OL>
					<!-- CONTENT -->
					<DIV class="main-content">
						<UL class="nav nav-tabs" role="tablist">
							<LI class="active">
								<A href="#/player/players">所有区域</A>
							</LI>
							<LI>
								<A href="#/player/players/heishan">黑山</A>
							</LI>
							<LI>
								<A href="#/player/players/quyang">曲阳</A>
							</LI>
						</UL>
						<BR>
						<DIV class="row">
							<DIV class="col-md-3 col-sm-3">
								<DIV class="form-group">
									<INPUT name="agent" class="form-control" type="number" min="1" placeholder="代理ID" value="">
								</DIV>
							</DIV>
							<DIV class="col-md-3 col-sm-3">
								<DIV class="form-group">
									<INPUT name="id" class="form-control" type="number" min="1" placeholder="玩家ID、账号" value="">
								</DIV>
							</DIV>
							<DIV class="col-md-2 col-sm-2">
								<DIV class="checkbox">
									<LABEL><INPUT name="robot" type="checkbox"> 含机器人           
    </LABEL> </DIV>
							</DIV>
							<DIV class="col-md-1 col-sm-1">
								<A class="btn btn-primary" href="javascript:goPage(1)">搜索</A>
							</DIV>
						</DIV>
						<HR>

						<DIV class="row">
							<H4 class="col-md-4">会员列表</H4>
							<DIV class="col-md-8 text-right">
								<BUTTON class="btn btn-primary" id="btnBatchCharge">赠卡/赠币</BUTTON>
							</DIV>
						</DIV>
						<DIV class="row">
							<DIV class="col-md-12" role="dataResult">
								<TABLE class="table table-hover table-striped dataTable">
									<THEAD>
										<TR>
											<TH>
												<DIV class="checkbox">
													<LABEL><INPUT name="selectAll" type="checkbox">      
           </LABEL> </DIV>
											</TH>
											<TH>ID/帐号</TH>
											<TH>区域</TH>
											<TH>昵称</TH>
											<TH>性别</TH>
											<TH class="sorting" id="up-Down-img-card" data-by="DESC" data-role="upDown" data-order="card">房卡</TH>
											<TH class="sorting" id="up-Down-img-gold" data-by="DESC" data-role="upDown" data-order="gold">金币</TH>
											<TH>所属代理</TH>
											<TH>机器人</TH>
											<TH class="sorting" id="up-Down-img-createdAt" data-by="DESC" data-role="upDown" data-order="createdAt">注册</TH>
											<TH class="sorting" id="up-Down-img-lastLoginAt" data-by="DESC" data-role="upDown" data-order="lastLoginAt">最后登录</TH>
											<TH>操作</TH>
										</TR>
									</THEAD>
									<TBODY>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1033"> 
                </LABEL> </DIV>
											</TD>
											<TD>1033
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1033">
													104535</A>
											</TD>
											<TD>曲阳</TD>
											<TD>宇文赌圣</TD>
											<TD>女</TD>
											<TD>7</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-20</TD>
											<TD>2018-03-22
												<BR>121.69.54.75</TD>
											<TD>
												<A data-role="roomcard" data-id="1033" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1033" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1033">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1032"> 
                </LABEL> </DIV>
											</TD>
											<TD>1032
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1032">
													108336</A>
											</TD>
											<TD>曲阳</TD>
											<TD>皇甫稳赢</TD>
											<TD>男</TD>
											<TD>10</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-20</TD>
											<TD>2018-03-20
												<BR>
											</TD>
											<TD>
												<A data-role="roomcard" data-id="1032" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1032" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1032">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1031"> 
                </LABEL> </DIV>
											</TD>
											<TD>1031
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1031">
													109096</A>
											</TD>
											<TD>曲阳</TD>
											<TD>蘇夏</TD>
											<TD>女</TD>
											<TD>10</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-15</TD>
											<TD>2018-03-15
												<BR>121.69.54.75</TD>
											<TD>
												<A data-role="roomcard" data-id="1031" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1031" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1031">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1030"> 
                </LABEL> </DIV>
											</TD>
											<TD>1030
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1030">
													102057</A>
											</TD>
											<TD>曲阳</TD>
											<TD>上官赌圣</TD>
											<TD>女</TD>
											<TD>4</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-14</TD>
											<TD>2018-03-19
												<BR>121.69.54.75</TD>
											<TD>
												<A data-role="roomcard" data-id="1030" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1030" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1030">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1029"> 
                </LABEL> </DIV>
											</TD>
											<TD>1029
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1029">
													102059</A>
											</TD>
											<TD>曲阳</TD>
											<TD>夏侯不输</TD>
											<TD>男</TD>
											<TD>7</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-14</TD>
											<TD>2018-03-20
												<BR>121.69.54.75</TD>
											<TD>
												<A data-role="roomcard" data-id="1029" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1029" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1029">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1028"> 
                </LABEL> </DIV>
											</TD>
											<TD>1028
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1028">
													104224</A>
											</TD>
											<TD>曲阳</TD>
											<TD>皇甫自摸</TD>
											<TD>男</TD>
											<TD>10</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-14</TD>
											<TD>2018-03-21
												<BR>121.69.54.75</TD>
											<TD>
												<A data-role="roomcard" data-id="1028" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1028" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1028">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1027"> 
                </LABEL> </DIV>
											</TD>
											<TD>1027
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1027">
													101583</A>
											</TD>
											<TD>曲阳</TD>
											<TD>天马行空</TD>
											<TD>男</TD>
											<TD>10</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-12</TD>
											<TD>2018-03-12
												<BR>
											</TD>
											<TD>
												<A data-role="roomcard" data-id="1027" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1027" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1027">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1026"> 
                </LABEL> </DIV>
											</TD>
											<TD>1026
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1026">
													104601</A>
											</TD>
											<TD>曲阳</TD>
											<TD>王兴</TD>
											<TD>男</TD>
											<TD>11</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-12</TD>
											<TD>2018-03-12
												<BR>
											</TD>
											<TD>
												<A data-role="roomcard" data-id="1026" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1026" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1026">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1025"> 
                </LABEL> </DIV>
											</TD>
											<TD>1025
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1025">
													104246</A>
											</TD>
											<TD>曲阳</TD>
											<TD>王谦</TD>
											<TD>男</TD>
											<TD>10</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-12</TD>
											<TD>2018-03-12
												<BR>
											</TD>
											<TD>
												<A data-role="roomcard" data-id="1025" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1025" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1025">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1024"> 
                </LABEL> </DIV>
											</TD>
											<TD>1024
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1024">
													109272</A>
											</TD>
											<TD>曲阳</TD>
											<TD>东方自摸</TD>
											<TD>女</TD>
											<TD>10</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-12</TD>
											<TD>2018-03-12
												<BR>
											</TD>
											<TD>
												<A data-role="roomcard" data-id="1024" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1024" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1024">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1023"> 
                </LABEL> </DIV>
											</TD>
											<TD>1023
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1023">
													101726</A>
											</TD>
											<TD>曲阳</TD>
											<TD>刘海涛</TD>
											<TD>男</TD>
											<TD>13</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-12</TD>
											<TD>2018-03-12
												<BR>
											</TD>
											<TD>
												<A data-role="roomcard" data-id="1023" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1023" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1023">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1022"> 
                </LABEL> </DIV>
											</TD>
											<TD>1022
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1022">
													108404</A>
											</TD>
											<TD>曲阳</TD>
											<TD>L</TD>
											<TD>男</TD>
											<TD>26</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-11</TD>
											<TD>2018-03-14
												<BR>121.69.54.75</TD>
											<TD>
												<A data-role="roomcard" data-id="1022" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1022" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1022">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1021"> 
                </LABEL> </DIV>
											</TD>
											<TD>1021
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1021">
													104562</A>
											</TD>
											<TD>黑山</TD>
											<TD>欧阳有钱</TD>
											<TD>男</TD>
											<TD>10</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-09</TD>
											<TD>2018-03-09
												<BR>
											</TD>
											<TD>
												<A data-role="roomcard" data-id="1021" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1021" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1021">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1020"> 
                </LABEL> </DIV>
											</TD>
											<TD>1020
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1020">
													108524</A>
											</TD>
											<TD>黑山</TD>
											<TD>轩辕雀圣</TD>
											<TD>女</TD>
											<TD>10</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-09</TD>
											<TD>2018-03-09
												<BR>
											</TD>
											<TD>
												<A data-role="roomcard" data-id="1020" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1020" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1020">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1019"> 
                </LABEL> </DIV>
											</TD>
											<TD>1019
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1019">
													101907</A>
											</TD>
											<TD>黑山</TD>
											<TD>子车赌侠</TD>
											<TD>男</TD>
											<TD>10</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-09</TD>
											<TD>2018-03-09
												<BR>
											</TD>
											<TD>
												<A data-role="roomcard" data-id="1019" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1019" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1019">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1018"> 
                </LABEL> </DIV>
											</TD>
											<TD>1018
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1018">
													102796</A>
											</TD>
											<TD>黑山</TD>
											<TD>东郭好运</TD>
											<TD>男</TD>
											<TD>10</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-08</TD>
											<TD>2018-03-08
												<BR>
											</TD>
											<TD>
												<A data-role="roomcard" data-id="1018" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1018" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1018">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1017"> 
                </LABEL> </DIV>
											</TD>
											<TD>1017
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1017">
													106616</A>
											</TD>
											<TD>曲阳</TD>
											<TD>上官稳赢</TD>
											<TD>男</TD>
											<TD>10</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-08</TD>
											<TD>2018-03-14
												<BR>121.69.54.75</TD>
											<TD>
												<A data-role="roomcard" data-id="1017" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1017" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1017">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1016"> 
                </LABEL> </DIV>
											</TD>
											<TD>1016
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1016">
													103227</A>
											</TD>
											<TD>曲阳</TD>
											<TD>司马赌侠</TD>
											<TD>女</TD>
											<TD>10</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-08</TD>
											<TD>2018-03-14
												<BR>121.69.54.75</TD>
											<TD>
												<A data-role="roomcard" data-id="1016" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1016" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1016">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1015"> 
                </LABEL> </DIV>
											</TD>
											<TD>1015
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1015">
													102542</A>
											</TD>
											<TD>曲阳</TD>
											<TD>独孤雀圣</TD>
											<TD>女</TD>
											<TD>10</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-08</TD>
											<TD>2018-03-14
												<BR>121.69.54.75</TD>
											<TD>
												<A data-role="roomcard" data-id="1015" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1015" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1015">查看</A>
											</TD>
										</TR>
										<TR>
											<TD>
												<DIV class="checkbox">
													<LABEL><INPUT name="members" type="checkbox" value="1014"> 
                </LABEL> </DIV>
											</TD>
											<TD>1014
												<BR>
												<A href="javascript:;" data-role="updateAccount" data-id="1014">
													108424</A>
											</TD>
											<TD>曲阳</TD>
											<TD>轩辕不输</TD>
											<TD>男</TD>
											<TD>10</TD>
											<TD>1000</TD>
											<TD></TD>
											<TD>false</TD>
											<TD>2018-03-07</TD>
											<TD>2018-03-08
												<BR>121.69.54.75</TD>
											<TD>
												<A data-role="roomcard" data-id="1014" data-role-type="charge">赠卡/赠币</A>&nbsp;&nbsp;
												<A data-role="roomcard" data-id="1014" data-role-type="deduct">扣除</A>&nbsp;&nbsp;
												<A href="#/player/player/1014">查看</A>
											</TD>
										</TR>
									</TBODY>
								</TABLE>
								<INPUT id="page" type="hidden" value="1">
								<UL class="pagination pagination-sm pull-left no-bottom-margin no-top-margin" role="pagination">
									<!--前-->
									<LI class="disabled">
										<A href="#/player/players#">«</A>
									</LI>
									<!--中-->

									<LI class="disabled">
										<A href="#/player/players#">1</A>
									</LI>

									<LI data-page="2">
										<A>2</A>
									</LI>
									<!--后-->

									<LI data-page="2">
										<A title="末页">»</A>
									</LI>
								</UL>
								<!--modal 充/扣卡 -->
								<DIV class="modal fade" id="chargeModal" role="dialog">
									<DIV class="modal-dialog">
										<DIV class="modal-content">
											<DIV class="modal-header">
												<BUTTON class="close" type="button" data-dismiss="modal"><SPAN 
aria-hidden="true">×</SPAN><SPAN class="sr-only">Close</SPAN></BUTTON>
												<H4 class="modal-title" id="myModalLabel">赠卡/赠币</H4>
											</DIV>
											<DIV class="modal-body clearfix" style="padding: 20px 0px 0px;">
												<DIV class="form-group col-md-12">
													<LABEL>用户</LABEL> </DIV>
												<DIV class="form-group col-md-12">
													<INPUT name="ids" class="form-control" type="text" readonly="readonly" placeholder="充值会员" value="">
												</DIV>
												<DIV class="form-group col-md-12">
													<LABEL>房卡数量</LABEL> </DIV>
												<DIV class="form-group col-md-12">
													<INPUT name="quantity" class="form-control" type="number" min="1" placeholder="请输入赠卡数量" value="">
												</DIV>
												<DIV class="form-group col-md-12">
													<LABEL>金币数量</LABEL> </DIV>
												<DIV class="form-group col-md-12">
													<INPUT name="gold-quantity" class="form-control" type="number" min="1" placeholder="请输入赠金币数量" value="">
												</DIV>
												<DIV class="form-group col-md-12">
													<LABEL>备注</LABEL> </DIV>
												<DIV class="form-group col-md-12">
													<TEXTAREA name="coment" class="form-control" rows="3"></TEXTAREA>
												</DIV>
											</DIV>
											<DIV class="modal-footer">
												<BUTTON class="btn btn-default" data-dismiss="modal">取消</BUTTON>
												<BUTTON class="btn btn-primary" data-type="charge">确定</BUTTON>
											</DIV>
										</DIV>
									</DIV>
								</DIV>
								<!-- modal end -->
								<!--modal -->
								<DIV class="modal fade" id="updateAccountModal" role="dialog">
									<DIV class="modal-dialog">
										<DIV class="modal-content">
											<DIV class="modal-header">
												<BUTTON class="close" type="button" data-dismiss="modal"><SPAN 
aria-hidden="true">×</SPAN><SPAN class="sr-only">Close</SPAN></BUTTON>
												<H4 class="modal-title" id="myModalLabel">更新帐号</H4>
											</DIV>
											<DIV class="modal-body">
												<DIV class="form-group">
													<SPAN class="control-label text-right"><SPAN class="text-danger">*</SPAN>帐号</SPAN>
													<INPUT name="updates" class="form-control" type="number" min="100000" max="999999" placeholder="请输入账号" value="" requied="">
												</DIV>
											</DIV>
											<DIV class="modal-footer no-top-margin">
												<BUTTON name="description" class="btn btn-default" data-dismiss="modal">取消</BUTTON>
												<BUTTON class="btn btn-success confirm">确定</BUTTON> </DIV>
										</DIV>
									</DIV>
								</DIV>
								<!-- modal end -->
								<SCRIPT type="text/javascript">
									$('a[data-role=updateAccount]').on('click', function() {
										var id = $(this).attr('data-id');
										var url = '/user/user/' + id + '/account';

										$('#updateAccountModal').modal({
											backdrop: 'static'
										});
										$('#updateAccountModal .confirm').on('click', function() {
											var account = $('input[name=updates]').val();
											console.log($('input[name=updates]'))
											if(!account) {
												mind.validateInfo($('input[name=updates]'), '不能为空');
												return;
											}
											_confirmModal(_update, '确认要更新吗？');
										});

										$('#updateAccountModal').on('hide.bs.modal', function() {
											$('#updateAccountModal .confirm').unbind('click');
										})

										function _update() {
											var account = $('input[name=updates]').val();
											$.post(url, {
												account: account
											}, function(result) {
												if(result.code === 0) {
													mind.alert('操作成功', 'success');
													goPage($('#page').text());
												} else {
													mind.alert(result.message, 'error');
												}
											})
										}
									})
								</SCRIPT>

								<SCRIPT src="css/md5.min.js" type="text/javascript"></SCRIPT>

								<SCRIPT>
									$('ul[role=pagination] li').on('click', function() {
										var page = $(this).attr('data-page');
										if(page && !isNaN(parseInt(page))) {
											goPage(page);
										}
									});

									$('input:checkbox[name=selectAll]').on('click', function(e) {
										var checked = $(this).prop('checked');
										$('input:checkbox[name=members]').prop('checked', checked);
										$("input:checkbox").uniform();
									})

									$('div[role=dataResult] a[data-role=roomcard]').on('click', function() {
										$('.modal-body input[name=ids]').val($(this).attr('data-id'));
										if($(this).attr('data-role-type') === 'deduct') {
											$('#chargeModal .modal-title').html('扣卡/扣金币');
											$('.modal-body input[name=quantity]').prop('placeholder', '请输入扣卡数量');
											$('.modal-body input[name=gold-quantity]').prop('placeholder', '请输入扣金币数量');
											$('div.modal-footer .btn-primary').attr('data-type', 'deduct');
										} else {
											$('#chargeModal .modal-title').html('赠卡/赠币');
											$('.modal-body input[name=quantity]').prop('placeholder', '请输入赠卡数量');
											$('.modal-body input[name=gold-quantity]').prop('placeholder', '请输入赠金币数量');
											$('div.modal-footer .btn-primary').attr('data-type', 'charge')
										}
										$('div.modal-footer .btn-primary').unbind('click');
										$('div.modal-footer .btn-primary').on('click', roomcardInOut);
										$('#chargeModal').modal({
											backdrop: 'static'
										})
									})
								</SCRIPT>
							</DIV>
							<DIV class="col-md-12 center-block text-center" role="dataLoading" style="display: none;">
								<IMG src="css/loading.gif"> </DIV>
						</DIV>
					</DIV>
					<!-- END: CONTENT -->
				</SECTION>
			</DIV>
			<!-- END: BODY -->
		</DIV>
		<DIV class="modal fade" id="sureModal" role="dialog" style="z-index: 10000;">
			<DIV class="modal-dialog modal-sm">
				<DIV class="modal-content">
					<DIV class="modal-header">
						<H4 class="modal-title">确认要进行此操作吗?</H4>
					</DIV>
					<DIV class="modal-footer no-border" data-role="footer">
						<BUTTON class="btn btn-default" data-dismiss="modal">取消</BUTTON>
						<BUTTON class="btn btn-success confirm">确定</BUTTON> </DIV>
					<DIV class="modal-footer no-border" style="display: none;" data-role="loading">
						<IMG src="css/loading.gif">
					</DIV>
				</DIV>
			</DIV>
		</DIV>
		<SCRIPT type="text/javascript">
			function _confirmModal(evn, title, notClose) {
				$('#sureModal').modal('show');
				$('#sureModal .btn-success').unbind('click');
				$('#sureModal .btn-success').on('click', function() {
					evn();
					if(!notClose) {
						$('#sureModal').modal('hide');
						$('.modal-backdrop').hide();
					}
				});
				if(title) {
					$('#sureModal .modal-title').html(title);
				} else {
					$('#sureModal .modal-title').html('确认要进行此操作吗？');
				}
			}
		</SCRIPT>
		<!-- JS -->
		<SCRIPT src="js/jquery-ui.min.js"></SCRIPT>

		<SCRIPT src="js/jquery.uniform.min.js"></SCRIPT>

		<SCRIPT src="js/bootstrap.min.js"></SCRIPT>

		<SCRIPT src="js/jasny-bootstrap.min.js"></SCRIPT>

		<SCRIPT src="js/jquery.autosize.min.js"></SCRIPT>

		<SCRIPT src="js/moment.min.js"></SCRIPT>

		<SCRIPT src="js/daterangepicker.js"></SCRIPT>

		<SCRIPT src="js/bootstrap-datepicker.js"></SCRIPT>

		<SCRIPT src="js/fullcalendar.min.js"></SCRIPT>
		<!-- <script src="/manager/vendor/dropzone/dist/min/dropzone.min.js"></script> -->
		<SCRIPT src="js/select2.min.js"></SCRIPT>

		<SCRIPT src="js/base.js"></SCRIPT>
		<!-- <script src="/manager/js/ark.js"></script> -->
		<SCRIPT src="js/toastr.min.js"></SCRIPT>

		<SCRIPT src="js/admin.js"></SCRIPT>

		<SCRIPT>
			/* 分页*/
			function goPage(number) {
				$('div[role=dataResult]').hide();
				$('div[role=dataLoading]').show();

				var saler = $('input[name=saler]').val();
				var agent = $('input[name=agent]').val();
				var game = $('input[name=game]').val();
				var id = $('input[name=id]').val();
				var accounts = $('input[name=id]').val();
				var robot = $('input[name=robot]').prop('checked');
				var url = '?page=' + number + '&radom=' + Date.now();
				if(saler && !isNaN(parseInt(saler))) {
					url += '&saler=' + saler;
				}
				if(agent && !isNaN(parseInt(agent))) {
					url += '&agent=' + agent;
				}
				if(game && !isNaN(parseInt(game))) {
					url += '&game=' + game;
				}
				if(id && !isNaN(parseInt(id))) {
					url += '&id=' + id;
				}
				if(accounts) {
					url += '&accounts=' + accounts;
				}
				if(robot) {
					url += '&robot=yes';
				}
				$.ajax({
					url: url,
					type: 'get',
					success: function(result) {
						$('div[role=dataResult]').show();
						$('div[role=dataLoading]').hide();
						$('div[role=dataResult]').html(result)
						$("input:checkbox").uniform();
					}
				})
			}

			$('#btnBatchCharge').on('click', function() {
				if($('input:checkbox[name=members]:checked').length > 0) {
					var ids = [];
					$('input:checkbox[name=members]:checked').each(function(i) {
						ids.push($('input:checkbox[name=members]:checked').eq(i).val());
					});
					$('.modal-body input[name=ids]').val(ids.join(','));

					$('#chargeModal .modal-title').html('赠卡/赠币');
					$('.modal-body input[name=quantity]').prop('placeholder', '请输入赠卡数量');
					$('.modal-body input[name=gold-quantity]').prop('placeholder', '请输入赠金币数量');
					$('div.modal-footer .btn-primary').attr('data-type', 'charge')

					$('#chargeModal').modal({
						backdrop: 'static'
					});
					$('div.modal-footer .btn-primary').unbind('click');
					$('div.modal-footer .btn-primary').on('click', batchGrantRoomcard);
				} else {
					mind.alert('未选择任何数据');
				}
			})

			function batchGrantRoomcard() {
				if(!$('.modal-body input[name=quantity]').val() & !$('.modal-body input[name=gold-quantity]').val()) {
					mind.validateInfo($('.modal-body input[name=quantity]'), '不能为空');
					return;
				}
				_confirmModal(_post);

				function _post() {
					if($('.modal-body input[name=gold-quantity]').val()) {
						$.post('/player/player/batchGrantGold', {
							ids: $('.modal-body input[name=ids]').val(),
							quantity: $('.modal-body input[name=gold-quantity]').val(),
							comment: $('.modal-body textarea[name=coment]').val()
						}, function(result) {
							$('.modal').modal('hide');
							$('.modal-backdrop').remove();
							if(result.code === 0) {
								mind.alert('操作成功', 'success');
								goPage($('#page').val());
							} else {
								mind.alert('error', result.message);
							}
						});

					}
					if($('.modal-body input[name=quantity]').val()) {
						$.post('/player/player/batchGrantRoomcard', {
							ids: $('.modal-body input[name=ids]').val(),
							quantity: $('.modal-body input[name=quantity]').val(),
							comment: $('.modal-body textarea[name=coment]').val()
						}, function(result) {
							$('.modal').modal('hide');
							$('.modal-backdrop').remove();
							if(result.code === 0) {
								mind.alert('操作成功', 'success');
								goPage($('#page').val());
							} else {
								mind.alert('error', result.message);
							}
						});
					}
				}
			}

			function roomcardInOut() {
				if(!$('.modal-body input[name=quantity]').val() & !$('.modal-body input[name=gold-quantity]').val()) {
					mind.validateInfo($('.modal-body input[name=quantity]'), '不能为空');
					return;
				}
				_confirmModal(_post);

				function _post() {
					if($('.modal-body input[name=quantity]').val()) {
						var url = '/player/player/' + $('.modal-body input[name=ids]').val() + '/grantRoomcard';
						if($('div.modal-footer .btn-primary').attr('data-type') === 'deduct') {
							url = '/player/player/' + $('.modal-body input[name=ids]').val() + '/deductRoomcard';
						}

						$.post(url, {
							quantity: $('.modal-body input[name=quantity]').val(),
							comment: $('.modal-body textarea[name=coment]').val()
						}, function(result) {
							if(result.code === 0) {
								$('.modal').modal('hide');
								$('.modal-backdrop').remove();
								mind.alert('操作成功', 'success');
								goPage($('#page').val());
							} else {
								mind.alert('error', result.message);
							}
						});
					}
					if($('.modal-body input[name=gold-quantity]').val()) {
						var url = '/player/player/' + $('.modal-body input[name=ids]').val() + '/grantGold';
						if($('div.modal-footer .btn-primary').attr('data-type') === 'deduct') {
							url = '/player/player/' + $('.modal-body input[name=ids]').val() + '/deductGold';
						}

						$.post(url, {
							quantity: $('.modal-body input[name=gold-quantity]').val(),
							comment: $('.modal-body textarea[name=coment]').val()
						}, function(result) {
							if(result.code === 0) {
								$('.modal').modal('hide');
								$('.modal-backdrop').remove();
								mind.alert('操作成功', 'success');
								goPage($('#page').val());
							} else {
								mind.alert('error', result.message);
							}
						});
					}
				}
			}
			$('body').on('click', 'th[data-role=upDown]', function(e) {
				var order = e.currentTarget.dataset.order
				var by = e.currentTarget.dataset.by
				var area = e.currentTarget.dataset.area
				var src_img = e.currentTarget.className
				var url = '/player/players/' + order + '/' + by
				if(area) {
					url = '/player/players/' + order + '/' + by + '/' + area
				}
				if(src_img == 'sorting_desc' || src_img == 'sorting') {
					$.get(url, function(result) {
						$('div[role=dataResult]').show();
						$('div[role=dataLoading]').hide();
						$('div[role=dataResult]').html(result);
						$("#up-Down-img-" + order).attr("class", "sorting_asc")
						$("input:checkbox").uniform();
					})
				} else if(src_img == 'sorting_asc') {
					$.get(url, function(result) {
						$('div[role=dataResult]').show();
						$('div[role=dataLoading]').hide();
						$('div[role=dataResult]').html(result);
						$("#up-Down-img-" + order).attr("class", "sorting_desc")
						$("input:checkbox").uniform();
					})
				}
			})
		</SCRIPT>
	</BODY>

</HTML>